<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    class Men{
      constructor(name,age){
        this.name = name
        this.age = age
      }
      say(){
        // console.log(`${this.name} 说了你好` );

        return this.name * this.age

      }
    }
 

    class Women extends Men{
      constructor(name,age){
        super(name,age)
      }
    }

    let  women = new Women(22,18)
    console.log(women.say());



  </script>

</body>
</html>